package com.example.demo.service;

import com.example.demo.entity.Person;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public interface LoginService{

    Boolean loginCheck(String user_name, String user_password);

    List<Person> findall(int user_lev);

    Person selectPersonById(Integer id);

    Person selectPersonByName(String name);

    Boolean addPerson(Person person);
}